package com.ngm.tea.t.service;

import java.util.List;
import java.util.Map;

import com.ngm.tea.common.PageInfo;
import com.ngm.tea.t.entity.RolePrivilege;

/**
 * 服务层
 * @author zjw
 * @version 1.0
 * @date 2016-09-01 21:07:07
 *
 */
public interface RolePrivilegeService {

	public void insert(RolePrivilege rolePrivilege);// 新增

	public void deleteById(Long id);// 按ID删除

	public void deleteByIds(String ids);// 按ID批量删除

	public void delete(RolePrivilege rolePrivilege);// 删除

	public void update(RolePrivilege rolePrivilege);// 更新

	public RolePrivilege selectOne(Long id);// 按ID查询
	
	public List<Map<String,Object>> selectOneByRoleCode(String roleCode);// 按roleCode查询

	public List<RolePrivilege> selectAll();// 查询所有

	public List<RolePrivilege> selectList(RolePrivilege rolePrivilege,PageInfo pageInfo);// 分页查询

	public Long count(RolePrivilege rolePrivilege);// 统计查询

}
